<template>
  <div class="page jump-back">
    <div class="container">
      <div class="banner">popup!</div>
      <div class="banner">popup!</div>
      <div class="banner">popup!</div>
    </div>
  </div>
</template>
<script setup>
import {} from "vue";
</script>
<style lang="scss">
.jump-back {
  .container {
    position: relative;
    margin: 50px auto;
    width: 1000px;
    height: 640px;
  }
  .banner {
    position: absolute;
    padding: 0;
    height: 200px;
    width: 100%;
    box-sizing: border-box;
    color: white;
    line-height: 200px;
    text-align: center;
    text-transform: uppercase;
    font-size: 50px;
    letter-spacing: 5px;
    animation: popup .5s linear;
  }
  .banner:nth-of-type(1) {
    top: 0;
    background-color: skyblue;
    animation-delay: .1s;
  }
  .banner:nth-of-type(2) {
    top: 220px;
    background-color: greenyellow;
    animation-delay: .2s;
  }
  .banner:nth-of-type(3) {
    top: 440px;
    background-color: hotpink;
    animation-delay: .3s;
  }
  @keyframes popup {
    0% {
      left: -100%;
    }
    70% {
      left: 20%;
    }
    100% {
      left: 0;
    }
  }
}
</style>